package com.yhm.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Redo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "redo", catalog = "yhm_trace")
public class Redo implements java.io.Serializable {

	// Fields

	private Integer id;
	private String companyNum;
	private String department;
	private String redoNum;

	// Constructors

	/** default constructor */
	public Redo() {
	}

	/** full constructor */
	public Redo(String companyNum, String department, String redoNum) {
		this.companyNum = companyNum;
		this.department = department;
		this.redoNum = redoNum;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "companyNum", length = 50)
	public String getCompanyNum() {
		return this.companyNum;
	}

	public void setCompanyNum(String companyNum) {
		this.companyNum = companyNum;
	}

	@Column(name = "department", length = 50)
	public String getDepartment() {
		return this.department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	@Column(name = "redoNum", length = 50)
	public String getRedoNum() {
		return this.redoNum;
	}

	public void setRedoNum(String redoNum) {
		this.redoNum = redoNum;
	}

}